package com.hyfrogx.modules.app.utils;

/**
 * @author ：Li9527
 * @date ：Created in 2019-09-16 12:50
 * @description：${description}
 * @modified By：
 * @version: 1.0.0
 */
public interface FrogConstant {

  // 短信应用SDK AppID
  public static int SMS_APP_ID = 1400067240;

  // 短信应用SDK AppKey
  public static final String SMS_APP_KEY = "67dc0004f66272098f8a26d6d55eae76";

  // 短信应用签名
  public static final String SMS_APP_SIGNKEY = "";

  /**
   * 短信验证码code的前缀
   */
  public static final String DEFAULT_CODE_KEY = "SMS_CODE_KEY";

  /**
   * 邀请短信验证码code前缀
   */
  public static final  String INVITE_YZM="INVITE_CODE_KEY";

  /**
   * 短信验证码默认时长 120秒
   */
  public static final long SMS_CODE_EXPIRE = 120;

  /**
   * 验证码短信模板
   */
  public static final int SMS_TMP_YZM = 421014;

  /**
   * 短信会议邀请模板
   */
  public static final int SMS_JOIN_MEET = 315106;

  public static final String UEDITOR_INFORMATION_PUT = "ueditor_information_put";
  public static final String UEDITOR_INFORMATION_PUT_LOCAL = "/mnt/file/information/";

  /**
   * 出蛙豆的系统uid
   */
  public final Long admin_uid = 1l;

  public static final String wx_fee = "1";
  public static final String fee = "0.01";

  // 常规布尔值状态 1是0否
  interface Status {
    // 是
    int TRUE = 1;
    // 否
    int FLASE = 0;
  }

  /**
   * 基楚状态
   */
  public enum BasicStatus {
    FLASE(0),  // 否
    TRUE(1);   // 是

    private int value;
    BasicStatus(int value) {
      this.value = value;
    }
    public int getValue() {
      return value;
    }
  }

  /**
   * 认证状态参数
   */
  interface AutherStatus {
    int WAIT = 0; // 待审
    int NORMAL = 1; // 通过
    int ERROR = 2; // 失败
    int NOAUTH = -1; // 未认证
  }


  interface HttpPay {
    String USERID = "uid";
    String YID = "yid";
    String GIFTID = "gid";
    String TYPE = "type";
    String VID = "vid";
    String MONEY = "money";
    String NUM = "num";
  }

  interface CHANNELTYPES {
    // 发行渠道
    int RELEACHANNEL = 1;
    // 设备渠道
    int DEVICECHANNEL = 0;
  }

  /**
   * 推送类型
   */
  public enum CustomAfterOpen {
    go_link(0),  // 目录
    go_zoom(1),     // 菜单
    go_message(2),   // 按钮
    go_my_zoom(3),
    go_meet_end(4);

    private int value;

    CustomAfterOpen(int value) {
      this.value = value;
    }

    public int getValue() {
      return value;
    }
  }

  // 验证码有效期2分钟
  interface yzmTime {
    int time = 120;
  }

  // 微信配置有效期2分钟
  interface wxConfigTime {
    int time = 300;
  }

  interface unionTime {
    int time = 600000;
  }

  // 签到有效期24小时/-今天0点到当前经过的毫秒数
  interface signTime {
    long time = 120000;
  }

  interface LivingStatus {
    int PERSON = 2;// 个人直播
    int LIVING = 1;// 企业直播
    int CLICK = 0;// 点播
  }

  interface CommonStatus {
    int NORMAL = 1;
    int ERROR = 0;
  }

  // zoom会议室类型
  interface ZoomMeetType {
    int COMMEN = 0;
    int VIP = 1;
    int FREE = 2;
  }

  interface GiftGroup {
    int Defult = 1;
  }

  interface UserStatus {
    int NORMAL = 1;// 正常状态
    int ERROR = 0;// 禁用状态
  }

  // 商品上下架状态
  interface GoodsStatus {
    String WATING = "0";// 待上架 默认
    String ALREADY = "1";// 已上架
    String DOWN = "2"; // 已下架
  }

  // 商品平台价模式
  interface GOODS_PLATFORM_TYPE {
    String BLEND = "1";// 平台价+积分
    String ALLSCORE = "2";// 全积分
    String ALLMONEY = "3"; // 全人民币
  }

  // 商品运费模式
  interface GOODS_FREIGHT_TYPE {
    String FREE = "0";// 包邮
    String CUSTOM = "1 ";// 自定义
  }

  interface Path {
    // 直播房间关联图片存取路径
    String LIVE = "live";
    // 个人直播相关图片存取路径
    String PERSON = "person";
    // 礼物图片
    String GIFT = "gift";
    // 充值图片
    String CHARGE = "charge";
    // 充值图片
    String APK = "apk";
    // 用户头像
    String USER = "user";
    // 广告图位
    String AD = "ad";
    // 快讯图位
    String FLASH= "flash";
    // 用户认证图位
    String AUTHER = "auther";
    // 游戏图位
    String GAME = "game";
    // 专栏分类图片
    String COLUMNTYPE = "columntype";
    // 专栏图片
    String COLUMN = "column";
    // 资讯
    String INFORMATION = "information";
    // 资讯
    String INFORMATION_FU = "information_fu";
    // 活动
    String ACTIVITY = "activity";
    // 游戏apk
    String GAMEAPK = "gameapk";
    // 模块配置图片
    String IMITATION = "imitation";
    // 模块配置图片
    String RADIO = "radio";
    // 用户反馈图片
    String FEEDBACK = "feedback";
    // 用户反馈图片
    String WULI = "wuli";
    // 资讯号审核图片
    String INFORMATION_VERIFY = "information_verify";
    String INFORMATION_VERIFY_FU = "information_verify_fu";
    // 识别存放图片路径
    String TMPBAIDU_SCAN = "tmpbaidu_scan";
    // 商品分类图片存放路径
    String GOODS_TYPE = "goods_type";
    // 商品资源图片存放路径
    String GOODS = "good";
    // 测试商品富文本资源存放路径
    String UEDITOR_GOODS = "ueditor_goods";
    //课程分类图片
    String COURSE = "course";
    //富文本统一存放路径
    String TEXT_URL = "text_url";
    String INTEGRAL_CONFIG = "integral_config";
  }

  interface SmsStatus {
    int NORMAL = 1;// 正常状态
    int ERROR = 0;// 禁用状态
  }

  interface Sex {
    int MAN = 1;// 男
    int WOMEN = 0;// 女
  }

  //// 0表示禁用； 1表示允许推流；2表示断流
  // interface Living
  // {
  // int FORBID = 0;
  // int ALLOW = 1;
  // int STOP = 2;
  // }
  interface RedisKey {
    String DISCUSS = "userDiscuss";
    String IMGROUP = "group";
    String ACCOUNT = "money";
    String TOKEN = "token";
    String REGISTER_YZM = "register_yzm";
    String PASS_YZM = "pass_yzm";
    String ANDROID_SCALE = "android_scale";
    String IOS_SCALE = "ios_scale";
    String LIVEHISTORY = "livehistory";
    String VOLUME = "volume";// VOLUME 表示注册赠送代币卷
    String RECOMMEND_TOPIC = "recommend_topic";
    String UNIONPAY = "unionpay";
    String USER_ZOOM_OPEN_TIMES = "user_zoom_open";
    String USER_ZOOM_JOIN_TIMES = "user_zoom_join";
    String COLUMN_MSG = "column_msg";
    String COLUMN_LESSON_READ = "column_lesson_read";// 栏目的阅读量
    String ZOOM_PRICE = "zoom_price";
    String CHARGE_PRECENT = "charge_precent";
    String DEVICE_TOKEN = "device_token";
    String INFO_ATTENTION = "info_attention";
    String FIX_PRICE = "fix_meet_price";
    String FIX_BASIC_JOIN_PRICE = "fix_meet_basic_join_price";
    String GAIWANG_YZM = "gaiwang_yzm";
    String WECHAT_CONFIG = "wechat_config";
    String SCORE = "score";
    String SIGN = "sign";
    String TASK = "task";
  }

  /**
   * 数据库配置参数唯一识别码
   *
   * @负责人: Li
   */
  interface SysConfigKey {
    String ANDROID_CHARGE_SCALE = "ANDROID_CHARGE_SCALE";
    String IOS_CHARGE_SCALE = "IOS_CHARGE_SCALE";
    String REGISTER_SEND = "REGISTER_SEND";
    String LIVE_CARD = "LIVE_CARD";
    String LIVE_GIFT = "LIVE_GIFT";
    String COMMEN_MEET_CARD = "COMMEN_MEET_CARD";
    String VIP_MEET_CARD = "VIP_MEET_CARD";
  }

  interface CharSet {
    String utf8 = "UTF-8";
  }

  /**
   * 数据格式
   *
   * @author Orchid
   * @version hyplatform 3.0
   * @date 2017年12月8日
   * @DateType
   */
  interface DateType {
    String JSON = "json";
  }

  interface PayStatus {
    int SUCCESS = 1; // 支付成功
    int CREATE = 0; // 订单已创建
    // 用户取消支付操作
    int CANCEL = -1;
    // 微信支付失败
    int FAIL = -2;
  }

  interface AliPayStatus {
    String success = "TRADE_SUCCESS";// 交易支付成功
    String wait = "WAIT_BUYER_PAY";// 交易创建，等待买家付款
    String close = "TRADE_CLOSED";// 未付款交易超时关闭，或支付完成后全额退款
    String finished = "TRADE_FINISHED";// 交易结束，不可退款
  }

  interface WeiXinStatus {
    String SUCCESS = "SUCCESS";// 交易支付成功
    String NOTPAY = "NOTPAY";// —未支付

    String FAIL = "FAIL";// 支付失败(其他原因，如银行返回失败)

    String REFUND = "REFUND";// 转入退款
    String CLOSED = "CLOSED";// 已关闭
    String USERPAYING = "USERPAYING";// 用户支付中
  }

  interface PayChannel {
    int ZHIFUBAO = 1;// 支付宝
    int APPLE = 2;// 苹果内购
    int WEIXIN = 3;// 微信
    int QQ = 4;// qq
    int UNIONPAY = 5;// 银联
    int SYSTEM_COIN = 6;// 系统充值
    int SYSTEM_REDUCE = 7;// 系统扣除
    int GAIWANG = 8;//盖网充值
  }

  interface Stastics {
    int PAGE_COUNT = 2000;// 每次从网关记录读取多少条数据
  }

  interface WXINFO {
    String APPID = "wxb7cb7afafbf25532";
    String SECRET = "53fc15860f4af715c2c4012f836bce7f";
  }

  interface WeChat {
    String APPID = "wxf35fe1863493f406";
    String SECRET = "a051c965763002f182278bda8ede93eb";
  }

  interface SHAREWXOLD {
    String APPID = "wx6bdfd8120439c428";
    String SECRET = "8823ac05ed5be9a601812282a03daf3c";
  }

  interface SHAREWX {
    String APPID = "wxa286cd324dd586bb";
    String SECRET = "c9a309409c9c628c9cd619363c3a2757";
  }

  interface InformationVerifyReason {
    String REASONA = "1";
    String REASONB = "2";
    String REASONC = "3";
  }

  interface SignRule {
    String SIGNRULE = "1、每人每天签到一次，签到后可获得积分奖励。\n2、连续签到的日期不可中断，如日期中断，连续签到的天数会从1天开始重新计算。\n3、用户获得连续签到奖励后，连续签到天数会重新计算，并在下一次连续签到满7天时再次获得连签奖励。";
  }

  interface TaskIcon {
    String SIGNICON = "1";
    String CONVERTICON = "2";
    String SHAREICON = "3";
  }

  /**
   * 抽成参数类型
   */
  public static final int HAVE_BASICE = 2;
  /**
   * 快讯类型状态
   */
  public enum FlashType{
    NORELEASE(0), //未上架
    RELEASE(1);   //上架

    private int value;

    FlashType(int value) {
      this.value = value;
    }

    public int getValue() {
      return value;
    }
  }

  /**
   * 广告上架方式
   */
  public enum AdReleaseType
  {
    IMMEDIATE(0),//立即上架
    TIMING(1);//定时上架

    private int value;

    AdReleaseType(int value) {
      this.value = value;
    }

    public int getValue() {
      return value;
    }
  }
  /**
   * 广告状态
   */
  public enum AdStatus{
    WAIT(0), //待上架
    HAVING(1),   //已上架
    OUT(2); //已下架或者已撤销

    private int value;

    AdStatus(int value) {
      this.value = value;
    }

    public int getValue() {
      return value;
    }
  }
  /**
   * 资讯状态
   */
  public enum InformationStatus{
    RECOMMEND(1), //推荐
    NOTRECOMMEND(0),  //不推荐
    TOP(1),
    NOTTOP(0),
    APPROVALREJECT(0),
    APPROVALPASS(1),
    APPROVALPENDING(2),
    APPROVALOFFLINE(3),
    PULL(1),//是否属于客户端下拉刷新内容 0表示否 1表示是
    NOTPULL(0);

    private int value;

    InformationStatus(int value) {
      this.value = value;
    }

    public int getValue() {
      return value;
    }
  }

  public enum AdJobStatus{
    NOUSING(0), //无用的
    USING(1);  //有用的

    private int value;

    AdJobStatus(int value) {
      this.value = value;
    }

    public int getValue() {
      return value;
    }
  }

  interface HyOrder {
    String WECHAT = "1";
    String ALIPAY = "2";
    String WAITITINGFORPAY = "1";
    String WAITITINGFORSHIP = "2";
    String WAITITINGFORGOODS = "3";
    String FINISHED = "4";
    String CANCELLED = "0";
  }

  /**
   * 资讯号
   * 审核拒绝0
   * 审核通过1
   * 审核中2
   * 未提交3
   * 过期4
   * 是一键哥1
   * 不是一键哥0
   */
  interface InformationVerify {

    int REJECT = 0;

    int PASS = 1;

    int PENDING = 2;

    int NOTSUBMIT = 3;

    int EXPIRE = 4;

    int YIJIANGE = 1;

    int NOTYIJIANGE = 0;
  }

  /**
   * 资讯
   * 0未发布
   * 1发布
   * 2下架
   */
  interface Information {
    int CONTENT_TYPE_UNKNOW = 15;
    int INFORMATION_STATE_NOT_PUBLISH =0;
    int INFORMATION_STATE_PUBLISH =1;
    int INFORMATION_STATE_UPPER =2;
  }


  /**
   * 评论状态
   */
   enum INFOCOMMENTSTATUS{
    SHOW(0), //无用的
    NOTSHOW(1),  //有用的
    PENDING(2);  //待审核

    private int value;

    INFOCOMMENTSTATUS(int value) {
      this.value = value;
    }

    public int getValue() {
      return value;
    }
  }

  /**
   * 角色
   * ADMIN NULL
   * 超管3
   * 运营5
   * 资讯号6
   * 不是后台用户0
   * 客户端用户1
   */
  interface Role {
    int MANAGER = 3;
    int OPERATION = 5;
    long MEDIA = 6;
    int NULL = 0;
    int APPUSER = 1;
  }

  /**
   * 评论状态
   * 0展示 1不展示
   */
  interface CommentState {

    int SHOWS = 0;

    int HIDDEN = 1;
  }

  /**
   * 评论列表显示用户类型
   * 0管理员
   * 1普通用户
   */
  interface CommentUserType {

    int ADMIN = 0;

    int USER = 1;
  }

  interface CourseStatus {

    int UPPER = 1;

    int LOWER = 2;
  }

  interface DisplayChannel {
    int all = 0;
    int ios = 1;
    int android = 2;
    int system = 3; //后台
  }

    /**
     * ios类型
     */
  interface iosUrl{
      int urlSandbox = 0;
      int urlVerify = 1;
  }

}
